//
//  TradePriceSocketModel.m
//  BTCoin
//
//  Created by Robin on 30/03/2018.
//  Copyright © 2018 Robin. All rights reserved.
//

#import "TradePriceSocketModel.h"

@implementation TradePriceSocketModel

DEFINE_SINGLETON_FOR_CLASS(TradePriceSocketModel)

- (void)updateData:(TradePriceSocketModel *)newModel {
    self.stockId = newModel.stockId;
    self.closePrice = newModel.closePrice;
    self.openPrice = newModel.openPrice;
    self.newPrice = newModel.newPrice;
    self.time = newModel.time;
    self.volume = newModel.volume;
    self.amount = newModel.amount;
    self.maxPrice = newModel.maxPrice;
    self.minPrice = newModel.minPrice;
    self.averagePrice = newModel.averagePrice;
    self.strokeCount = newModel.strokeCount;
    self.buys = newModel.buys;
    self.sells = newModel.sells;
}

@end
